const mongoose = require('./db')
var Schema = mongoose.Schema

// 物料清单
var BOMSchema = Schema({
    BOMTitle:String, // 物料清单主题
    BOMID:String, // 物料清单编号
    BOMNum:String, // 数量
    productName:String, // 产品名称
    BOMDate:{   // 制单日期
        type:Date,
        default: (new Date()).getTime(),
    },
    BOMStaff:String,    // 制单人员
})
const BOMModels = mongoose.model("BOM",BOMSchema,"BOM")

module.exports =  { BOMModels }
